function getMatchRes(list, str){
    return list.filter(item => {
        let patt = new RegExp(str,"i");
        return patt.test(item.name);
    });
}